import {lazy} from "react"
import {Navigate} from "react-router-dom"
let Home = lazy(()=>import("../pages/home"))
let Detail = lazy(()=>import("../pages/detail"))
let routerconfig = [
    {
        path:"/home",
        element:<Home></Home>
    },
    {
        path:"/detail",
        element:<Detail></Detail>
    },
    {
        path:"/",
        element:<Navigate to="/home"></Navigate>
    }
]
export default routerconfig